package com.kancy.spring.boot.drools.config;

import com.kancy.spring.boot.drools.properties.DroolsProperties;
import com.kancy.spring.boot.drools.service.LocalDroolsRuleEngine;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author kancy
 * @date 2020/1/18 17:25
 **/
@Configuration
@Import({RuleDynamicRefreshProcessor.class, LocalDroolsRuleEngine.class})
public class DroolsAutoConfiguration {

    @Bean
    @ConfigurationProperties("drools")
    public DroolsProperties droolsProperties(){
        return new DroolsProperties();
    }

}
